<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        section button{
            margin-top: 30px;
            width: 300px;
            border-radius: 10px;
            height: 40px;
        }
        section input{
            margin-top: 10px;
            width: 300px;
            height: 35px;
        }
        section span{
            font-size: 14px;
            color: aqua;
        }
        section div{
            font-size: 12px;
            margin-top: 200px;
        }
    </style>
</head>
<body>
    <section id="app">
        <h1>密码登录</h1>
        <input type="text" placeholder="手机/用户名" v-model="from.name"><br>
        <input type="text" placeholder="密码" v-model="from.password"><br>
        <button @click="denglu">登录</button><br>
        <span>手机号登录</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span>忘记密码</span>
        <div>已阅读并同意<span>《用户服务协议》、《隐私政策》</span></div>
    </section>
</body>
</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v=new Vue({
        el:'#app',
        data:{
            from:{
                name:'',
                password:''
            }
        },
        methods:{
            denglu(){
                console.log(this.from);
            }
        }
    })
</script>